package com.itheima.test4;

/**
 * @Author:gy
 * @Date: 2025/09/01 10:29
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        MyTheead myTheead1 = new MyTheead("小帅");
        MyTheead myTheead2 = new MyTheead("小美");
        myTheead1.setName("小强");
        myTheead1.start();
        myTheead2.start();
       Thread thread = Thread.currentThread();
        System.out.println(thread.getName());

    }
}
